package mv_igual_10;

import Ação.Escrita;
import Ação.Retirar;
import Ação.Leitura;
import java.awt.Component;
import java.io.*;
import java.text.DecimalFormat;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFormattedTextField;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import javax.swing.text.DefaultFormatterFactory;
import javax.swing.text.MaskFormatter;

public class Formulario extends javax.swing.JFrame 
{
    Retirar virgula = new Retirar();
    Retirar ponto = new Retirar();
    Retirar pontoevirgula = new Retirar();
    Leitura ler = new Leitura();
    Escrita escrever = new Escrita();
    public Formulario() 
    {
        initComponents();
        this.setLocationRelativeTo(null);
        setTitle("Seja bem vindo!");
        Real();
        txtCnpj.requestFocus();
    }
    @SuppressWarnings("unchecked")
    //Mascara do CNPJ.
    public static DefaultFormatterFactory setCNPJ()  
    {  
        MaskFormatter CNPJ = null;  
        try   
        {   
            CNPJ = new MaskFormatter("##.###.###/####-##");
            CNPJ.setValidCharacters("0123456789");
            CNPJ.setPlaceholderCharacter('_');
        }   
        catch (Exception pe) { }  
        DefaultFormatterFactory factory = new DefaultFormatterFactory(CNPJ, CNPJ);  
        return factory;  
    }
    //Mascara valores.
    public void Real()
    {
        for (Component r : PainelAC.getComponents())
        {
            if (r instanceof JFormattedTextField) 
            {
                JFormattedTextField R = (JFormattedTextField) r;
                R.setText("0,00");
                R.setHorizontalAlignment(JTextField.CENTER);
            }
        }
        for (Component r : PainelANC.getComponents())
        {
            if (r instanceof JFormattedTextField) 
            {
                JFormattedTextField R = (JFormattedTextField) r;
                R.setText("0,00");
                R.setHorizontalAlignment(JTextField.CENTER);
            }
        }
        for (Component r : PainelPC.getComponents())
        {
            if (r instanceof JFormattedTextField) 
            {
                JFormattedTextField R = (JFormattedTextField) r;
                R.setText("0,00");
                R.setHorizontalAlignment(JTextField.CENTER);
            }
        }
        for (Component r : PainelPNC.getComponents())
        {
            if (r instanceof JFormattedTextField) 
            {
                JFormattedTextField R = (JFormattedTextField) r;
                R.setText("0,00");
                R.setHorizontalAlignment(JTextField.CENTER);
            }
        }
        for (Component r : PainelPL.getComponents())
        {
            if (r instanceof JFormattedTextField) 
            {
                JFormattedTextField R = (JFormattedTextField) r;
                R.setText("0,00");
                R.setHorizontalAlignment(JTextField.CENTER);
            }
        }
        for (Component r : PainelCmv.getComponents())
        {
            if (r instanceof JFormattedTextField) 
            {
                JFormattedTextField R = (JFormattedTextField) r;
                R.setText("0,00");
                R.setHorizontalAlignment(JTextField.CENTER);
            }
        }
        for (Component r : PainelDespesa.getComponents())
        {
            if (r instanceof JFormattedTextField) 
            {
                JFormattedTextField R = (JFormattedTextField) r;
                R.setText("0,00");
                R.setHorizontalAlignment(JTextField.CENTER);
            }
        }
        for (Component r : PainelReceita.getComponents())
        {
            if (r instanceof JFormattedTextField) 
            {
                JFormattedTextField R = (JFormattedTextField) r;
                R.setText("0,00");
                R.setHorizontalAlignment(JTextField.CENTER);
            }
        }
        for (Component r : PainelVerificacao.getComponents())
        {
            if (r instanceof JFormattedTextField) 
            {
                JFormattedTextField R = (JFormattedTextField) r;
                R.setText("0,00");
                R.setHorizontalAlignment(JTextField.CENTER);
            }
        }
    }
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        PainelANC = new javax.swing.JPanel();
        LBCapialSocial24 = new javax.swing.JLabel();
        LBCapialSocial23 = new javax.swing.JLabel();
        LBCapialSocial22 = new javax.swing.JLabel();
        LBCapialSocial29 = new javax.swing.JLabel();
        LBCapialSocial18 = new javax.swing.JLabel();
        LBCapialSocial12 = new javax.swing.JLabel();
        txtAutomovel = new javax.swing.JFormattedTextField();
        txtInformatica = new javax.swing.JFormattedTextField();
        txtMovel = new javax.swing.JFormattedTextField();
        txtInvestimento = new javax.swing.JFormattedTextField();
        txtDepreciacao = new javax.swing.JFormattedTextField();
        txtMArketing = new javax.swing.JFormattedTextField();
        PainelPNC = new javax.swing.JPanel();
        LBCapialSocial32 = new javax.swing.JLabel();
        txtDuplicatasAPagar = new javax.swing.JFormattedTextField();
        PainelPL = new javax.swing.JPanel();
        LBCapialSocial = new javax.swing.JLabel();
        LBCapialSocial20 = new javax.swing.JLabel();
        LBCapialSocial10 = new javax.swing.JLabel();
        txtCapitalSocial = new javax.swing.JFormattedTextField();
        txtReservaCapital = new javax.swing.JFormattedTextField();
        txtLucro = new javax.swing.JFormattedTextField();
        PainelReceita = new javax.swing.JPanel();
        LBCapialSocial33 = new javax.swing.JLabel();
        LBCapialSocial34 = new javax.swing.JLabel();
        LBCapialSocial3 = new javax.swing.JLabel();
        LBCapialSocial4 = new javax.swing.JLabel();
        txtVenda = new javax.swing.JFormattedTextField();
        txtIcmsVenda = new javax.swing.JFormattedTextField();
        txtJurosObitido = new javax.swing.JFormattedTextField();
        txtDescontoObitido = new javax.swing.JFormattedTextField();
        PainelDespesa = new javax.swing.JPanel();
        LBCapialSocial35 = new javax.swing.JLabel();
        LBCapialSocial36 = new javax.swing.JLabel();
        txtJurosConcebido = new javax.swing.JFormattedTextField();
        txtDescontoConcebido = new javax.swing.JFormattedTextField();
        PainelPC = new javax.swing.JPanel();
        LBCapialSocial9 = new javax.swing.JLabel();
        LBCapialSocial14 = new javax.swing.JLabel();
        LBCapialSocial5 = new javax.swing.JLabel();
        LBCapialSocial27 = new javax.swing.JLabel();
        LBCapialSocial26 = new javax.swing.JLabel();
        LBCapialSocial28 = new javax.swing.JLabel();
        LBCapialSocial25 = new javax.swing.JLabel();
        LBCapialSocial21 = new javax.swing.JLabel();
        txtFornercedor = new javax.swing.JFormattedTextField();
        txtDuplicatasPagar = new javax.swing.JFormattedTextField();
        txtIcmsRecolher = new javax.swing.JFormattedTextField();
        txtSalariosEncargos = new javax.swing.JFormattedTextField();
        txtAgua = new javax.swing.JFormattedTextField();
        txtEnergiaEletrica = new javax.swing.JFormattedTextField();
        txtTelefone = new javax.swing.JFormattedTextField();
        txtAluguel = new javax.swing.JFormattedTextField();
        PainelAdministrativo = new javax.swing.JPanel();
        BtSalvar = new javax.swing.JButton();
        BtSair = new javax.swing.JButton();
        PainelRelatorio = new javax.swing.JPanel();
        BoxRelatorio = new javax.swing.JComboBox();
        BtGerar = new javax.swing.JButton();
        LBCapialSocial16 = new javax.swing.JLabel();
        LBCapialSocial31 = new javax.swing.JLabel();
        txtEmpresa = new javax.swing.JFormattedTextField();
        txtCnpj = new javax.swing.JFormattedTextField();
        BtPesquisar = new javax.swing.JButton();
        PainelAC = new javax.swing.JPanel();
        LBCapialSocial7 = new javax.swing.JLabel();
        LBCapialSocial1 = new javax.swing.JLabel();
        LBCapialSocial2 = new javax.swing.JLabel();
        LBCapialSocial15 = new javax.swing.JLabel();
        LBCapialSocial8 = new javax.swing.JLabel();
        LBCapialSocial6 = new javax.swing.JLabel();
        LBCapialSocial11 = new javax.swing.JLabel();
        LBCapialSocial13 = new javax.swing.JLabel();
        txtBanco = new javax.swing.JFormattedTextField();

        txtAplicacao = new javax.swing.JFormattedTextField();
        txtCaixa = new javax.swing.JFormattedTextField();
        txtDuplicatasReceber = new javax.swing.JFormattedTextField();
        txtEstoque = new javax.swing.JFormattedTextField();
        txtIcmsRecuperar = new javax.swing.JFormattedTextField();
        txtMaterialEscritorio = new javax.swing.JFormattedTextField();
        txtMaterialLimpeza = new javax.swing.JFormattedTextField();
        PainelCmv = new javax.swing.JPanel();
        LBCapialSocial19 = new javax.swing.JLabel();
        txtCmv = new javax.swing.JFormattedTextField();
        PainelVerificacao = new javax.swing.JPanel();
        LBCapialSocial30 = new javax.swing.JLabel();
        LBCapialSocial17 = new javax.swing.JLabel();
        txtDebito = new javax.swing.JFormattedTextField();
        txtCredito = new javax.swing.JFormattedTextField();
        BtVerificar = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Valores");
        setAlwaysOnTop(true);
        setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));

        PainelANC.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(java.awt.SystemColor.textHighlight, 1, true), "Ativo / Não Circulante", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.TOP, new java.awt.Font("Arial", 1, 12), java.awt.SystemColor.textHighlight)); // NOI18N

        LBCapialSocial24.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial24.setText("Automóvel:");

        LBCapialSocial23.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial23.setText("Informática:");

        LBCapialSocial22.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial22.setText("Móvel:");

        LBCapialSocial29.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial29.setText("Investimento:");

        LBCapialSocial18.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial18.setText("Depreciação:");

        LBCapialSocial12.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial12.setText("Marketing:");

        javax.swing.GroupLayout PainelANCLayout = new javax.swing.GroupLayout(PainelANC);
        PainelANC.setLayout(PainelANCLayout);
        PainelANCLayout.setHorizontalGroup(
            PainelANCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PainelANCLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PainelANCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(PainelANCLayout.createSequentialGroup()
                        .addGroup(PainelANCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(PainelANCLayout.createSequentialGroup()
                                .addGroup(PainelANCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(LBCapialSocial24)
                                    .addComponent(LBCapialSocial22))
                                .addGap(82, 82, 82))
                            .addGroup(PainelANCLayout.createSequentialGroup()
                                .addComponent(txtAutomovel)
                                .addGap(6, 6, 6)))
                        .addGroup(PainelANCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtInformatica)
                            .addGroup(PainelANCLayout.createSequentialGroup()
                                .addGroup(PainelANCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(LBCapialSocial29)
                                    .addComponent(LBCapialSocial23))
                                .addGap(0, 63, Short.MAX_VALUE))))
                    .addGroup(PainelANCLayout.createSequentialGroup()
                        .addComponent(txtDepreciacao, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtMArketing))
                    .addGroup(PainelANCLayout.createSequentialGroup()
                        .addGroup(PainelANCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(PainelANCLayout.createSequentialGroup()
                                .addComponent(LBCapialSocial18)
                                .addGap(70, 70, 70))
                            .addGroup(PainelANCLayout.createSequentialGroup()
                                .addComponent(txtMovel)
                                .addGap(6, 6, 6)))
                        .addGroup(PainelANCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(PainelANCLayout.createSequentialGroup()
                                .addComponent(LBCapialSocial12)
                                .addGap(0, 0, Short.MAX_VALUE))
                            .addComponent(txtInvestimento))))
                .addContainerGap())
        );
        PainelANCLayout.setVerticalGroup(
            PainelANCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PainelANCLayout.createSequentialGroup()
                .addGroup(PainelANCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(LBCapialSocial24)
                    .addComponent(LBCapialSocial23))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PainelANCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtAutomovel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtInformatica, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PainelANCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(LBCapialSocial22)
                    .addComponent(LBCapialSocial29))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PainelANCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtMovel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtInvestimento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PainelANCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(LBCapialSocial18)
                    .addComponent(LBCapialSocial12))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PainelANCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtDepreciacao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtMArketing, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(12, Short.MAX_VALUE))
        );

        PainelPNC.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(java.awt.SystemColor.textHighlight, 1, true), "Passivo / Não Circulante", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.TOP, new java.awt.Font("Arial", 1, 12), java.awt.SystemColor.textHighlight)); // NOI18N
        PainelPNC.setForeground(java.awt.SystemColor.textHighlight);
        PainelPNC.setToolTipText("");

        LBCapialSocial32.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial32.setText("Duplicatas a Pagar:");

        javax.swing.GroupLayout PainelPNCLayout = new javax.swing.GroupLayout(PainelPNC);
        PainelPNC.setLayout(PainelPNCLayout);
        PainelPNCLayout.setHorizontalGroup(
            PainelPNCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PainelPNCLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PainelPNCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(PainelPNCLayout.createSequentialGroup()
                        .addComponent(LBCapialSocial32)
                        .addGap(0, 32, Short.MAX_VALUE))
                    .addGroup(PainelPNCLayout.createSequentialGroup()
                        .addComponent(txtDuplicatasAPagar)
                        .addContainerGap())))
        );
        PainelPNCLayout.setVerticalGroup(
            PainelPNCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PainelPNCLayout.createSequentialGroup()
                .addComponent(LBCapialSocial32)
                .addGap(6, 6, 6)
                .addComponent(txtDuplicatasAPagar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 7, Short.MAX_VALUE))
        );

        PainelPL.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(java.awt.SystemColor.textHighlight, 1, true), "Patrimônio Líquido", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.TOP, new java.awt.Font("Arial", 1, 12), java.awt.SystemColor.textHighlight)); // NOI18N
        PainelPL.setForeground(java.awt.SystemColor.textHighlight);
        PainelPL.setToolTipText("");

        LBCapialSocial.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial.setText("Capital Social:");

        LBCapialSocial20.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial20.setText("Lucro:");

        LBCapialSocial10.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial10.setText("Reserva de Capital:");

        javax.swing.GroupLayout PainelPLLayout = new javax.swing.GroupLayout(PainelPL);
        PainelPL.setLayout(PainelPLLayout);
        PainelPLLayout.setHorizontalGroup(
            PainelPLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PainelPLLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PainelPLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(PainelPLLayout.createSequentialGroup()
                        .addGroup(PainelPLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(PainelPLLayout.createSequentialGroup()
                                .addComponent(LBCapialSocial)
                                .addGap(65, 65, 65))
                            .addGroup(PainelPLLayout.createSequentialGroup()
                                .addComponent(txtCapitalSocial)
                                .addGap(6, 6, 6)))
                        .addGroup(PainelPLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(PainelPLLayout.createSequentialGroup()
                                .addGap(1, 1, 1)
                                .addComponent(LBCapialSocial10)
                                .addGap(0, 29, Short.MAX_VALUE))
                            .addComponent(txtReservaCapital)))
                    .addGroup(PainelPLLayout.createSequentialGroup()
                        .addGroup(PainelPLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(LBCapialSocial20)
                            .addComponent(txtLucro, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        PainelPLLayout.setVerticalGroup(
            PainelPLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PainelPLLayout.createSequentialGroup()
                .addGroup(PainelPLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(LBCapialSocial)
                    .addComponent(LBCapialSocial10))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PainelPLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtCapitalSocial, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtReservaCapital, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(LBCapialSocial20)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(txtLucro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(14, Short.MAX_VALUE))
        );

        PainelReceita.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(java.awt.SystemColor.textHighlight, 1, true), "Receita", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.TOP, new java.awt.Font("Arial", 1, 12), java.awt.SystemColor.textHighlight)); // NOI18N

        LBCapialSocial33.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial33.setText("Juros Ativo:");

        LBCapialSocial34.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial34.setText("Desconto Obtido:");

        LBCapialSocial3.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial3.setText("Venda:");

        LBCapialSocial4.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial4.setText("ICMS sobre Venda:");

        txtIcmsVenda.setEditable(false);
        txtIcmsVenda.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                AtualizarIcmsVenda(evt);
            }
        });

        javax.swing.GroupLayout PainelReceitaLayout = new javax.swing.GroupLayout(PainelReceita);
        PainelReceita.setLayout(PainelReceitaLayout);
        PainelReceitaLayout.setHorizontalGroup(
            PainelReceitaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PainelReceitaLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(PainelReceitaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(PainelReceitaLayout.createSequentialGroup()
                        .addComponent(txtJurosObitido, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtDescontoObitido))
                    .addGroup(PainelReceitaLayout.createSequentialGroup()
                        .addGroup(PainelReceitaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(LBCapialSocial3)
                            .addComponent(LBCapialSocial33)
                            .addComponent(txtVenda, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(6, 6, 6)
                        .addGroup(PainelReceitaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(LBCapialSocial34)
                            .addComponent(LBCapialSocial4)
                            .addComponent(txtIcmsVenda, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap())
        );
        PainelReceitaLayout.setVerticalGroup(
            PainelReceitaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PainelReceitaLayout.createSequentialGroup()
                .addGroup(PainelReceitaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(LBCapialSocial4)
                    .addComponent(LBCapialSocial3))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PainelReceitaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtVenda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtIcmsVenda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PainelReceitaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(LBCapialSocial33)
                    .addComponent(LBCapialSocial34))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PainelReceitaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtJurosObitido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtDescontoObitido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(12, Short.MAX_VALUE))
        );

        PainelDespesa.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(java.awt.SystemColor.textHighlight, 1, true), "Despesa", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.TOP, new java.awt.Font("Arial", 1, 12), java.awt.SystemColor.textHighlight)); // NOI18N

        LBCapialSocial35.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial35.setText("Juros Passivo:");

        LBCapialSocial36.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial36.setText("Desconto Concebido:");

        javax.swing.GroupLayout PainelDespesaLayout = new javax.swing.GroupLayout(PainelDespesa);
        PainelDespesa.setLayout(PainelDespesaLayout);
        PainelDespesaLayout.setHorizontalGroup(
            PainelDespesaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PainelDespesaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PainelDespesaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(LBCapialSocial35)
                    .addComponent(txtJurosConcebido, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PainelDespesaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(PainelDespesaLayout.createSequentialGroup()
                        .addComponent(LBCapialSocial36)
                        .addGap(0, 19, Short.MAX_VALUE))
                    .addComponent(txtDescontoConcebido))
                .addContainerGap())
        );
        PainelDespesaLayout.setVerticalGroup(
            PainelDespesaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PainelDespesaLayout.createSequentialGroup()
                .addGroup(PainelDespesaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(LBCapialSocial35)
                    .addComponent(LBCapialSocial36))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PainelDespesaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtJurosConcebido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtDescontoConcebido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(0, 9, Short.MAX_VALUE))
        );

        PainelPC.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(java.awt.SystemColor.textHighlight, 1, true), "Passivo / Circulante", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.TOP, new java.awt.Font("Arial", 1, 12), java.awt.SystemColor.textHighlight)); // NOI18N
        PainelPC.setForeground(java.awt.SystemColor.textHighlight);
        PainelPC.setToolTipText("");

        LBCapialSocial9.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial9.setText("Fornecedor:");

        LBCapialSocial14.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial14.setText("Duplicatas a Pagar:");

        LBCapialSocial5.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial5.setText("ICMS à Recolher:");

        LBCapialSocial27.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial27.setText("Salários e encargos:");

        LBCapialSocial26.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial26.setText("Água:");

        LBCapialSocial28.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial28.setText("Energia Elétrica:");

        LBCapialSocial25.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial25.setText("Telefone:");

        LBCapialSocial21.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial21.setText("Aluguel:");

        javax.swing.GroupLayout PainelPCLayout = new javax.swing.GroupLayout(PainelPC);
        PainelPC.setLayout(PainelPCLayout);
        PainelPCLayout.setHorizontalGroup(
            PainelPCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PainelPCLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PainelPCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(PainelPCLayout.createSequentialGroup()
                        .addGroup(PainelPCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(LBCapialSocial9)
                            .addComponent(txtFornercedor, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(PainelPCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(PainelPCLayout.createSequentialGroup()
                                .addComponent(LBCapialSocial14)
                                .addGap(0, 0, Short.MAX_VALUE))
                            .addComponent(txtDuplicatasPagar)))
                    .addComponent(LBCapialSocial26)
                    .addGroup(PainelPCLayout.createSequentialGroup()
                        .addGroup(PainelPCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(LBCapialSocial25)
                            .addComponent(txtAgua)
                            .addComponent(txtTelefone, javax.swing.GroupLayout.DEFAULT_SIZE, 139, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(PainelPCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtEnergiaEletrica)
                            .addComponent(LBCapialSocial28)
                            .addComponent(LBCapialSocial21)
                            .addComponent(txtAluguel)))
                    .addGroup(PainelPCLayout.createSequentialGroup()
                        .addGroup(PainelPCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(PainelPCLayout.createSequentialGroup()
                                .addComponent(LBCapialSocial5)
                                .addGap(49, 49, 49))
                            .addGroup(PainelPCLayout.createSequentialGroup()
                                .addComponent(txtIcmsRecolher)
                                .addGap(6, 6, 6)))
                        .addGroup(PainelPCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(PainelPCLayout.createSequentialGroup()
                                .addComponent(LBCapialSocial27)
                                .addGap(0, 22, Short.MAX_VALUE))
                            .addComponent(txtSalariosEncargos))))
                .addContainerGap())
        );
        PainelPCLayout.setVerticalGroup(
            PainelPCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PainelPCLayout.createSequentialGroup()
                .addGroup(PainelPCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(LBCapialSocial9)
                    .addComponent(LBCapialSocial14))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PainelPCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtFornercedor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtDuplicatasPagar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(12, 12, 12)
                .addGroup(PainelPCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(LBCapialSocial27)
                    .addComponent(LBCapialSocial5))
                .addGap(3, 3, 3)
                .addGroup(PainelPCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtIcmsRecolher, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtSalariosEncargos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PainelPCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(LBCapialSocial26)
                    .addComponent(LBCapialSocial28))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PainelPCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtEnergiaEletrica, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtAgua, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(9, 9, 9)
                .addGroup(PainelPCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(LBCapialSocial25)
                    .addComponent(LBCapialSocial21))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PainelPCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtTelefone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtAluguel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(12, Short.MAX_VALUE))
        );

        PainelAdministrativo.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(java.awt.SystemColor.textHighlight, 1, true), "", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.TOP, new java.awt.Font("Arial", 1, 12), java.awt.SystemColor.textHighlight)); // NOI18N

        BtSalvar.setFont(new java.awt.Font("Arial", 1, 14)); // NOI18N
        BtSalvar.setText("Salvar");
        BtSalvar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                EventoBtSalvar(evt);
            }
        });

        BtSair.setFont(new java.awt.Font("Arial", 1, 14)); // NOI18N
        BtSair.setText("Sair");
        BtSair.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                EventoBtSair(evt);
            }
        });

        PainelRelatorio.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(java.awt.SystemColor.textHighlight, 1, true), "Relatório", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.TOP, new java.awt.Font("Arial", 1, 12), java.awt.SystemColor.textHighlight)); // NOI18N

        BoxRelatorio.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
        BoxRelatorio.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Balancete de Verificação", "Demonstrativo de Resultado", "Balanço Patrimonial" }));
        BoxRelatorio.setToolTipText("null\n");

        BtGerar.setFont(new java.awt.Font("Arial", 1, 14)); // NOI18N
        BtGerar.setText("Gerar");
        BtGerar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                EventoBtGerar(evt);
            }
        });

        javax.swing.GroupLayout PainelRelatorioLayout = new javax.swing.GroupLayout(PainelRelatorio);
        PainelRelatorio.setLayout(PainelRelatorioLayout);
        PainelRelatorioLayout.setHorizontalGroup(
            PainelRelatorioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PainelRelatorioLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(BoxRelatorio, 0, 229, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(BtGerar)
                .addContainerGap())
        );
        PainelRelatorioLayout.setVerticalGroup(
            PainelRelatorioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PainelRelatorioLayout.createSequentialGroup()
                .addGroup(PainelRelatorioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(BtGerar, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(BoxRelatorio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(0, 3, Short.MAX_VALUE))
        );

        LBCapialSocial16.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial16.setText("Empresa:");

        LBCapialSocial31.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial31.setText("CNPJ:");

        txtEmpresa.setHorizontalAlignment(javax.swing.JTextField.CENTER);

        txtCnpj.setFormatterFactory(setCNPJ());
        txtCnpj.setHorizontalAlignment(javax.swing.JTextField.CENTER);

        BtPesquisar.setFont(new java.awt.Font("Arial", 1, 14)); // NOI18N
        BtPesquisar.setText("Pesquisar");
        BtPesquisar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                EventoBtPesquisar(evt);
            }
        });

        javax.swing.GroupLayout PainelAdministrativoLayout = new javax.swing.GroupLayout(PainelAdministrativo);
        PainelAdministrativo.setLayout(PainelAdministrativoLayout);
        PainelAdministrativoLayout.setHorizontalGroup(
            PainelAdministrativoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PainelAdministrativoLayout.createSequentialGroup()
                .addGroup(PainelAdministrativoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(LBCapialSocial31)
                    .addComponent(LBCapialSocial16))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PainelAdministrativoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(PainelAdministrativoLayout.createSequentialGroup()
                        .addComponent(txtCnpj, javax.swing.GroupLayout.PREFERRED_SIZE, 206, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(BtPesquisar))
                    .addComponent(txtEmpresa))
                .addGap(18, 18, 18)
                .addComponent(PainelRelatorio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(29, 29, 29)
                .addComponent(BtSalvar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(BtSair)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        PainelAdministrativoLayout.setVerticalGroup(
            PainelAdministrativoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PainelAdministrativoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(PainelAdministrativoLayout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(PainelAdministrativoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(txtEmpresa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(LBCapialSocial16))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(PainelAdministrativoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(txtCnpj, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(LBCapialSocial31)
                        .addComponent(BtPesquisar)))
                .addComponent(PainelRelatorio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PainelAdministrativoLayout.createSequentialGroup()
                .addGroup(PainelAdministrativoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(BtSair, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(BtSalvar, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        PainelAC.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(java.awt.SystemColor.textHighlight, 1, true), "Ativo / Circulante", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.TOP, new java.awt.Font("Arial", 1, 12), java.awt.SystemColor.textHighlight)); // NOI18N
        PainelAC.setForeground(java.awt.SystemColor.textHighlight);
        PainelAC.setToolTipText("");

        LBCapialSocial7.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial7.setText("Banco:");

        LBCapialSocial1.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial1.setText("Caixa:");

        LBCapialSocial2.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial2.setText("Estoque:");

        LBCapialSocial15.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial15.setText("Duplicatas à Receber:");

        LBCapialSocial8.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial8.setText("Aplicações:");

        LBCapialSocial6.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial6.setText("ICMS à Recuperar:");

        LBCapialSocial11.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial11.setText("Materiais de Escritório:");

        LBCapialSocial13.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial13.setText("Materiais de Limpeza:");

        txtIcmsRecuperar.setEditable(false);
        txtIcmsRecuperar.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                AtualizarIcmsRecuperar(evt);
            }
        });

        javax.swing.GroupLayout PainelACLayout = new javax.swing.GroupLayout(PainelAC);
        PainelAC.setLayout(PainelACLayout);
        PainelACLayout.setHorizontalGroup(
            PainelACLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PainelACLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PainelACLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(PainelACLayout.createSequentialGroup()
                        .addGroup(PainelACLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(PainelACLayout.createSequentialGroup()
                                .addGroup(PainelACLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(txtBanco, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(LBCapialSocial1)
                                    .addComponent(txtCaixa, javax.swing.GroupLayout.DEFAULT_SIZE, 139, Short.MAX_VALUE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(PainelACLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(LBCapialSocial15)
                                    .addComponent(txtAplicacao)
                                    .addComponent(txtDuplicatasReceber, javax.swing.GroupLayout.DEFAULT_SIZE, 139, Short.MAX_VALUE)))
                            .addGroup(PainelACLayout.createSequentialGroup()
                                .addGroup(PainelACLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(LBCapialSocial11)
                                    .addComponent(LBCapialSocial2))
                                .addGap(15, 15, 15)
                                .addGroup(PainelACLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(LBCapialSocial13)
                                    .addGroup(PainelACLayout.createSequentialGroup()
                                        .addGap(6, 6, 6)
                                        .addComponent(LBCapialSocial6))))
                            .addGroup(PainelACLayout.createSequentialGroup()
                                .addGroup(PainelACLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(txtMaterialEscritorio, javax.swing.GroupLayout.DEFAULT_SIZE, 139, Short.MAX_VALUE)
                                    .addComponent(txtEstoque))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(PainelACLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(txtIcmsRecuperar)
                                    .addComponent(txtMaterialLimpeza))))
                        .addContainerGap())
                    .addGroup(PainelACLayout.createSequentialGroup()
                        .addComponent(LBCapialSocial7)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(LBCapialSocial8)
                        .addGap(78, 78, 78))))
        );
        PainelACLayout.setVerticalGroup(
            PainelACLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PainelACLayout.createSequentialGroup()
                .addGroup(PainelACLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(PainelACLayout.createSequentialGroup()
                        .addComponent(LBCapialSocial7)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(PainelACLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtBanco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtAplicacao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(3, 3, 3))
                    .addComponent(LBCapialSocial8, javax.swing.GroupLayout.Alignment.LEADING))
                .addGroup(PainelACLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(PainelACLayout.createSequentialGroup()
                        .addComponent(LBCapialSocial1)
                        .addGap(35, 35, 35))
                    .addGroup(PainelACLayout.createSequentialGroup()
                        .addComponent(LBCapialSocial15)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(PainelACLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtCaixa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtDuplicatasReceber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(15, 15, 15)))
                .addGroup(PainelACLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(LBCapialSocial6)
                    .addComponent(LBCapialSocial2))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PainelACLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtEstoque, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtIcmsRecuperar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PainelACLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(LBCapialSocial11)
                    .addComponent(LBCapialSocial13))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PainelACLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtMaterialEscritorio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtMaterialLimpeza, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(12, Short.MAX_VALUE))
        );

        PainelCmv.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(java.awt.SystemColor.textHighlight, 1, true), "CMV", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.TOP, new java.awt.Font("Arial", 1, 12), java.awt.SystemColor.textHighlight)); // NOI18N

        LBCapialSocial19.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial19.setText("CMV:");

        javax.swing.GroupLayout PainelCmvLayout = new javax.swing.GroupLayout(PainelCmv);
        PainelCmv.setLayout(PainelCmvLayout);
        PainelCmvLayout.setHorizontalGroup(
            PainelCmvLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PainelCmvLayout.createSequentialGroup()
                .addGap(4, 4, 4)
                .addComponent(LBCapialSocial19)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(txtCmv, javax.swing.GroupLayout.DEFAULT_SIZE, 139, Short.MAX_VALUE)
                .addContainerGap())
        );
        PainelCmvLayout.setVerticalGroup(
            PainelCmvLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PainelCmvLayout.createSequentialGroup()
                .addGroup(PainelCmvLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(LBCapialSocial19)
                    .addComponent(txtCmv, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(0, 13, Short.MAX_VALUE))
        );

        PainelVerificacao.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(java.awt.SystemColor.textHighlight, 1, true), "Verificação", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font("Arial", 1, 12), java.awt.SystemColor.textHighlight)); // NOI18N

        LBCapialSocial30.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial30.setText("Crédito");

        LBCapialSocial17.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
        LBCapialSocial17.setText("Débito");

        javax.swing.GroupLayout PainelVerificacaoLayout = new javax.swing.GroupLayout(PainelVerificacao);
        PainelVerificacao.setLayout(PainelVerificacaoLayout);
        PainelVerificacaoLayout.setHorizontalGroup(
            PainelVerificacaoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PainelVerificacaoLayout.createSequentialGroup()
                .addGroup(PainelVerificacaoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(PainelVerificacaoLayout.createSequentialGroup()
                        .addGap(60, 60, 60)
                        .addComponent(LBCapialSocial17)
                        .addGap(0, 53, Short.MAX_VALUE))
                    .addGroup(PainelVerificacaoLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(txtDebito)))
                .addGroup(PainelVerificacaoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(PainelVerificacaoLayout.createSequentialGroup()
                        .addGap(51, 51, 51)
                        .addComponent(LBCapialSocial30))
                    .addGroup(PainelVerificacaoLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtCredito, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        PainelVerificacaoLayout.setVerticalGroup(
            PainelVerificacaoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PainelVerificacaoLayout.createSequentialGroup()
                .addGroup(PainelVerificacaoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(LBCapialSocial17)
                    .addComponent(LBCapialSocial30))
                .addGap(6, 6, 6)
                .addGroup(PainelVerificacaoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtDebito, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtCredito, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(0, 14, Short.MAX_VALUE))
        );

        BtVerificar.setFont(new java.awt.Font("Arial", 1, 14)); // NOI18N
        BtVerificar.setText("Verificar");
        BtVerificar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                EventoBtVerificar(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(PainelAC, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(PainelANC, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(6, 6, 6)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(PainelPC, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(layout.createSequentialGroup()
                                .addGap(70, 70, 70)
                                .addComponent(PainelPNC, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup()
                                .addGap(50, 50, 50)
                                .addComponent(PainelCmv, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup()
                                .addGap(110, 110, 110)
                                .addComponent(BtVerificar)))
                        .addGap(6, 6, 6)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(PainelPL, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(PainelReceita, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(PainelDespesa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(PainelVerificacao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(PainelAdministrativo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(12, 12, 12)
                .addComponent(PainelAdministrativo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(PainelAC, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(3, 3, 3)
                        .addComponent(PainelANC, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(PainelPC, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(9, 9, 9)
                        .addComponent(PainelPNC, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(7, 7, 7)
                        .addComponent(PainelCmv, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(12, 12, 12)
                        .addComponent(BtVerificar))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(PainelPL, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(4, 4, 4)
                        .addComponent(PainelReceita, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(6, 6, 6)
                        .addComponent(PainelDespesa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(7, 7, 7)
                        .addComponent(PainelVerificacao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents
    //Gerar os relatórios. (Balancete de verificação, balanco patrimonial e demonstrativo de resultado)
    private void EventoBtGerar(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EventoBtGerar
       String valor;
       valor = BoxRelatorio.getSelectedItem().toString();
       if (valor.equals("Balancete de Verificação"))
       {
           double Debito = 0;
           double Credito = 0;
           double despesas = 0;
           // Ativos circulantes.
           double banco = Double.parseDouble(virgula.Numero((txtBanco.getText())));
           double caixa = Double.parseDouble(virgula.Numero((txtCaixa.getText())));
           double estoque = Double.parseDouble(virgula.Numero((txtEstoque.getText())));
           double MaterialEscritorio = Double.parseDouble(virgula.Numero((txtMaterialEscritorio.getText())));
           double aplicacao = Double.parseDouble(virgula.Numero((txtAplicacao.getText())));
           double DuplicatasReceber = Double.parseDouble(virgula.Numero((txtDuplicatasReceber.getText())));
           double IcmsRecuperar = Double.parseDouble(virgula.Numero((txtIcmsRecuperar.getText())));
           double MaterialLimpeza = Double.parseDouble(virgula.Numero((txtMaterialLimpeza.getText())));
           //Ativos nao Circulantes.
           double Automovel = Double.parseDouble(virgula.Numero((txtAutomovel.getText())));
           double imoveis = Double.parseDouble(virgula.Numero((txtMovel.getText())));
           double depreciacao =  Double.parseDouble(virgula.Numero((txtDepreciacao.getText())));
           double informatica = Double.parseDouble(virgula.Numero((txtDepreciacao.getText())));
           double investimento = Double.parseDouble(virgula.Numero((txtInvestimento.getText())));
           double marketing = Double.parseDouble(virgula.Numero((txtMArketing.getText())));
           double venda = Double.parseDouble(virgula.Numero((txtVenda.getText())));
           double jurosObtido = Double.parseDouble(virgula.Numero((txtJurosObitido.getText())));
           double IcmsVenda = Double.parseDouble(virgula.Numero((txtIcmsVenda.getText())));
           double descontoObtido = Double.parseDouble(virgula.Numero((txtDescontoObitido.getText())));
           //Passivos Circulantes.
           double fornecedor= Double.parseDouble(virgula.Numero((txtFornercedor.getText())));
           double icmsRecolher = Double.parseDouble(virgula.Numero((txtIcmsRecolher.getText())));
           double agua = Double.parseDouble(virgula.Numero((txtAgua.getText())));
           double telefone = Double.parseDouble(virgula.Numero((txtTelefone.getText())));
           double duplicatasPagar = Double.parseDouble(virgula.Numero((txtDuplicatasPagar.getText())));
           double salariosEncargos = Double.parseDouble(virgula.Numero((txtSalariosEncargos.getText())));
           double energiaEletrica = Double.parseDouble(virgula.Numero((txtEnergiaEletrica.getText())));
           double aluguel = Double.parseDouble(virgula.Numero((txtAluguel.getText())));
           //Passivos nao Circulantes.
           double  duplicatasPagarPas = Double.parseDouble(virgula.Numero((txtDuplicatasAPagar.getText())));
           // Patrimonio Liquido.
           double capitalSocial = Double.parseDouble(virgula.Numero((txtCapitalSocial.getText())));
           double lucro = Double.parseDouble(virgula.Numero((txtLucro.getText())));
           double reservaCapital = Double.parseDouble(virgula.Numero((txtReservaCapital.getText())));
           // Despesas.
           double jurosConcebido = Double.parseDouble(virgula.Numero((txtJurosConcebido.getText())));
           double descontoConcebido = Double.parseDouble(virgula.Numero((txtDescontoConcebido.getText())));
           //Salvando dados para tela Balancete verificação.
           despesas = jurosConcebido + aluguel + salariosEncargos + energiaEletrica + MaterialLimpeza + MaterialEscritorio + depreciacao + agua + telefone + marketing;    
           Debito = banco + DuplicatasReceber + estoque + IcmsRecuperar + caixa + IcmsVenda + investimento + aplicacao + Automovel + 
                   informatica + imoveis + despesas;
           Credito = fornecedor + capitalSocial + icmsRecolher + reservaCapital + lucro + duplicatasPagar + descontoConcebido + venda + jurosObtido + descontoObtido;
           String pasta = pontoevirgula.Retirar(txtCnpj.getText());
            try 
            {
                escrever.escrevendo(String.valueOf(despesas), pasta, "BVDespesas.txt");
                escrever.escrevendo(String.valueOf(Debito), pasta, "BVDebito.txt");
                escrever.escrevendo(String.valueOf(Credito), pasta, "BVCredito.txt");
                new Balancete_Verificacao().setVisible(true);
            } 
            catch (IOException ex) {}
       }
       else if (valor.equals("Demonstrativo de Resultado"))
       {
            try 
            {
                DRResultado();
                new dre().setVisible(true);
            } 
            catch (IOException ex){}
       }
       else if (valor.equals("Balanço Patrimonial"))
       {
           double banco = Double.parseDouble(virgula.Numero(txtBanco.getText()));
           double caixa = Double.parseDouble(virgula.Numero(txtCaixa.getText()));
           double estoque = Double.parseDouble(virgula.Numero(txtEstoque.getText()));
           double MaterialEscritorio = Double.parseDouble(virgula.Numero(txtMaterialEscritorio.getText()));
           double aplicacao = Double.parseDouble(virgula.Numero(txtAplicacao.getText()));
           double DuplicatasReceber = Double.parseDouble(virgula.Numero(txtDuplicatasReceber.getText()));
           double IcmsRecuperar = Double.parseDouble(virgula.Numero(txtIcmsRecuperar.getText()));
           double MaterialLimpeza = Double.parseDouble(virgula.Numero(txtMaterialLimpeza.getText()));
           //Ativos nao Circulantes.
           double Automovel = Double.parseDouble(virgula.Numero(txtAutomovel.getText()));
           double imoveis = Double.parseDouble(virgula.Numero(txtMovel.getText()));
           double depreciacao =  Double.parseDouble(virgula.Numero(txtDepreciacao.getText()));
           double informatica = Double.parseDouble(virgula.Numero(txtDepreciacao.getText()));
           double investimento = Double.parseDouble(virgula.Numero(txtInvestimento.getText()));
           double marketing = Double.parseDouble(virgula.Numero(txtMArketing.getText()));
           //Passivos circulantes.
           double fornecedor= Double.parseDouble(virgula.Numero(txtFornercedor.getText()));
           double agua = Double.parseDouble(virgula.Numero(txtAgua.getText()));
           double telefone = Double.parseDouble(virgula.Numero(txtTelefone.getText()));
           double duplicatasPagar = Double.parseDouble(virgula.Numero(txtDuplicatasPagar.getText()));
           double salariosEncargos = Double.parseDouble(virgula.Numero(txtSalariosEncargos.getText()));
           double energiaEletrica = Double.parseDouble(virgula.Numero(txtEnergiaEletrica.getText()));
           double aluguel = Double.parseDouble(virgula.Numero(txtAluguel.getText()));
           //Passivos nao Circulantes.
           double duplicatasPagarPas = Double.parseDouble(virgula.Numero(txtDuplicatasAPagar.getText()));
           //Patrimonio Liquido.
           double capitalSocial = Double.parseDouble(virgula.Numero(txtCapitalSocial.getText()));
           double lucro = Double.parseDouble(virgula.Numero(txtLucro.getText()));
           double reservaCapital = Double.parseDouble(virgula.Numero(txtReservaCapital.getText()));
           // Despesas.
           double totalAtivo = 0;
           double totalAtivoN = 0;
           double totalPassivo = 0;
           double totalPassivoN = 0;
           double totalPatrimonio = 0;
           double totalA = 0;
           double totalP = 0;
           //Granvando os dados para usar na tela Balanço Patrimonial.
           //Ativo circulante
               totalAtivo = banco + caixa + estoque + DuplicatasReceber + IcmsRecuperar + aplicacao + MaterialLimpeza + MaterialEscritorio;
               totalAtivoN = marketing + investimento + imoveis + informatica + Automovel + depreciacao;
               totalPassivo = duplicatasPagar + fornecedor + salariosEncargos + agua + energiaEletrica + telefone + aluguel;
               totalPatrimonio = capitalSocial + lucro + reservaCapital;
               totalA = totalAtivo + totalAtivoN;
               totalP = totalPassivo + duplicatasPagarPas + totalPatrimonio;
               String pasta = pontoevirgula.Retirar(txtCnpj.getText());
            try {
                escrever.escrevendo(String.valueOf(totalAtivo), pasta, "BPParcialAtivo.txt");
                escrever.escrevendo(String.valueOf(totalAtivoN), pasta, "BPParcialAtivoN.txt");
                escrever.escrevendo(String.valueOf(totalPassivo), pasta, "BPParcialPassivo.txt");
                escrever.escrevendo(String.valueOf(totalPassivoN), pasta, "BPParcialPassivoN.txt");
                escrever.escrevendo(String.valueOf(totalPatrimonio), pasta, "BPParcialPL.txt");
                escrever.escrevendo(String.valueOf(totalA), pasta, "BPPTotalAtivo.txt");
                escrever.escrevendo(String.valueOf(totalP), pasta, "BPPTotalPassivo.txt");
               new Balanco_patrimonial().setVisible(true);
            } catch (IOException ex) {}
        }   
    }//GEN-LAST:event_EventoBtGerar
    public void DRResultado()throws IOException
    {
        double venda, recolher, recuperar, icms, receita, cmv, operacional;
        double despesas, juros, energia, aluguel, salario, limpeza, escritorio;
        double depreciacao, telefone, agua, marketing, desconto, receitas, jurosobtido, descobtido, lair;
        double provisao, lucro;
        venda = Double.parseDouble(virgula.Numero(txtVenda.getText()));
        icms = Double.parseDouble(virgula.Numero(txtIcmsVenda.getText()));
        receita = venda - icms;
        cmv = Double.parseDouble(virgula.Numero(txtCmv.getText()));
        operacional = receita - cmv;
        juros = Double.parseDouble(virgula.Numero(txtJurosConcebido.getText()));
        energia = Double.parseDouble(virgula.Numero(txtEnergiaEletrica.getText()));
        aluguel = Double.parseDouble(virgula.Numero(txtAluguel.getText()));
        salario = Double.parseDouble(virgula.Numero(txtSalariosEncargos.getText()));
        limpeza = Double.parseDouble(virgula.Numero(txtMaterialLimpeza.getText()));
        escritorio = Double.parseDouble(virgula.Numero(txtMaterialEscritorio.getText()));
        depreciacao = Double.parseDouble(virgula.Numero(txtDepreciacao.getText()));
        telefone = Double.parseDouble(virgula.Numero(txtTelefone.getText()));
        agua = Double.parseDouble(virgula.Numero(txtAgua.getText()));
        marketing = Double.parseDouble(virgula.Numero(txtMArketing.getText()));
        desconto = Double.parseDouble(virgula.Numero(txtDescontoConcebido.getText()));
        despesas = juros + energia + aluguel + salario + limpeza + escritorio + depreciacao + telefone + agua + marketing + desconto;
        jurosobtido = Double.parseDouble(virgula.Numero(txtJurosObitido.getText()));
        descobtido = Double.parseDouble(virgula.Numero(txtDescontoObitido.getText()));
        receitas = juros + descobtido;
        lair = (receitas + operacional) - despesas;
        provisao = lair * 0.24;
        lucro = lair - provisao;
        String pasta = (pontoevirgula.Retirar(txtCnpj.getText()));
        escrever.escrevendo(String.valueOf(venda), pasta, "DRVenda.txt");
        escrever.escrevendo(String.valueOf(icms), pasta, "DRICMS.txt");
        escrever.escrevendo(String.valueOf(receita), pasta, "DRReceita.txt");
        escrever.escrevendo(String.valueOf(cmv), pasta, "DRCMV.txt");
        escrever.escrevendo(String.valueOf(operacional), pasta, "DROperacional.txt");
        escrever.escrevendo(String.valueOf(despesas), pasta, "DRDespesa.txt");
        escrever.escrevendo(String.valueOf(receitas), pasta, "DRReceita.txt");
        escrever.escrevendo(String.valueOf(lair), pasta, "DRLair.txt");
        escrever.escrevendo(String.valueOf(provisao), pasta, "DRProvisao.txt");
        escrever.escrevendo(String.valueOf(lucro), pasta, "DRLucro.txt");
    }    //Evento do botão sair personalizado.
    private void EventoBtSair(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EventoBtSair
        int opcao = JOptionPane.showConfirmDialog(null, "Deseja realmente sair e retornar a tela inicial?", "Não esqueça de salvar antes!", JOptionPane.YES_NO_OPTION);
        if (opcao == JOptionPane.YES_OPTION) {
            this.setDefaultCloseOperation(Formulario.DISPOSE_ON_CLOSE);
            this.setVisible(false);
            this.dispose();
        }
        else 
        {
            setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
        }
    }//GEN-LAST:event_EventoBtSair
    private void EventoBtSalvar(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EventoBtSalvar
        try 
        {
            SalvarTXT();
            JOptionPane.showMessageDialog(null, "Arquivo gravado com sucesso.");
        } 
        catch (IOException ex) {}
    }//GEN-LAST:event_EventoBtSalvar
    public void SalvarTXT()throws IOException
    {
        String pasta = pontoevirgula.Retirar(txtCnpj.getText());
        escrever.escrevendo(txtEmpresa.getText(), pasta, "VEmpresa.txt");
        escrever.escrevendo(txtBanco.getText(), pasta, "VBanco.txt");
        escrever.escrevendo(txtAplicacao.getText(), pasta, "VAplicacao.txt");
        escrever.escrevendo(txtCaixa.getText(), pasta, "VCaixa.txt");
        escrever.escrevendo(txtDuplicatasReceber.getText(), pasta, "VDuplicatasReceber.txt");
        escrever.escrevendo(txtEstoque.getText(), pasta, "VEstoque.txt");
        escrever.escrevendo(txtIcmsRecuperar.getText(), pasta, "VIcmsRecuperar.txt");
        escrever.escrevendo(txtMaterialEscritorio.getText(), pasta, "VMatEscritorio.txt");
        escrever.escrevendo(txtMaterialLimpeza.getText(), pasta, "VMatLimpeza.txt");
        escrever.escrevendo(txtFornercedor.getText(), pasta, "VFornercedor.txt");
        escrever.escrevendo(txtDuplicatasPagar.getText(), pasta, "VDuplicatasPagar.txt");
        escrever.escrevendo(txtIcmsRecolher.getText(), pasta, "VIcmsRecolher.txt");
        escrever.escrevendo(txtSalariosEncargos.getText(), pasta, "VSalario.txt");
        escrever.escrevendo(txtAgua.getText(), pasta, "VAgua.txt");
        escrever.escrevendo(txtEnergiaEletrica.getText(), pasta, "VEnergia.txt");
        escrever.escrevendo(txtTelefone.getText(), pasta, "VTelefone.txt");
        escrever.escrevendo(txtAluguel.getText(), pasta, "VAluguel.txt");
        escrever.escrevendo(txtCapitalSocial.getText(), pasta, "VCapital.txt");
        escrever.escrevendo(txtReservaCapital.getText(), pasta, "VReserva.txt");
        escrever.escrevendo(txtLucro.getText(), pasta, "VLucro.txt");
        escrever.escrevendo(txtVenda.getText(), pasta, "VVenda.txt");
        escrever.escrevendo(txtIcmsVenda.getText(), pasta, "VIcmsVenda.txt");
        escrever.escrevendo(txtJurosObitido.getText(), pasta, "VJurosObitido.txt");
        escrever.escrevendo(txtDescontoObitido.getText(), pasta, "VDescObtido.txt");
        escrever.escrevendo(txtAutomovel.getText(), pasta, "VAutomovel.txt");
        escrever.escrevendo(txtInformatica.getText(), pasta, "VInformatica.txt");
        escrever.escrevendo(txtMovel.getText(), pasta, "VMovel.txt");
        escrever.escrevendo(txtInvestimento.getText(), pasta, "VInvestimento.txt");
        escrever.escrevendo(txtDepreciacao.getText(), pasta, "VDepreciacao.txt");
        escrever.escrevendo(txtMArketing.getText(), pasta, "VMarketing.txt");
        escrever.escrevendo(txtDuplicatasAPagar.getText(), pasta, "VDuplaPagar.txt");
        escrever.escrevendo(txtJurosConcebido.getText(), pasta, "VJursoConcebido.txt");
        escrever.escrevendo(txtDescontoConcebido.getText(), pasta, "VDescConcebido.txt");
        escrever.escrevendo(txtCmv.getText(), pasta, "VCmv.txt");
    }
    private void EventoBtVerificar(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EventoBtVerificar
        double banco, caixa, aplicacao, duplicatasreceber, estoque, materialescritorio, materiallimpeza, icmsrecuperar, automovel, informatica, movel,
               investimento, marketing, depreciacao, salario, agua, energia, telefone, aluguel, venda, icmsvenda, jurosconcebido, descontoconcebido;
        double fornecedor, duplicadaspagar, icmsrecolher, duplicatasapagar, jurosobtido, descontoobtido, capital, reserva, lucro;
        double somadebito, somacredito;
        //Adicionando Text nas variáveis.
        banco = Double.parseDouble(virgula.Numero(txtBanco.getText()));
        caixa = Double.parseDouble(virgula.Numero(txtCaixa.getText()));
        aplicacao = Double.parseDouble(virgula.Numero(txtAplicacao.getText()));
        duplicatasreceber = Double.parseDouble(virgula.Numero(txtDuplicatasReceber.getText()));
        estoque = Double.parseDouble(virgula.Numero(txtEstoque.getText()));
        materialescritorio = Double.parseDouble(virgula.Numero(txtMaterialEscritorio.getText()));
        materiallimpeza = Double.parseDouble(virgula.Numero(txtMaterialLimpeza.getText()));         
        icmsrecuperar = Double.parseDouble(virgula.Numero(txtIcmsRecuperar.getText()));
        automovel = Double.parseDouble(virgula.Numero(txtAutomovel.getText()));
        informatica = Double.parseDouble(virgula.Numero(txtInformatica.getText()));
        movel = Double.parseDouble(virgula.Numero(txtMovel.getText()));
        investimento = Double.parseDouble(virgula.Numero(txtInvestimento.getText()));
        marketing = Double.parseDouble(virgula.Numero(txtMArketing.getText()));
        depreciacao = Double.parseDouble(virgula.Numero(txtDepreciacao.getText()));
        salario = Double.parseDouble(virgula.Numero(txtSalariosEncargos.getText()));
        agua = Double.parseDouble(virgula.Numero(txtAgua.getText()));
        energia = Double.parseDouble(virgula.Numero(txtEnergiaEletrica.getText()));
        telefone = Double.parseDouble(virgula.Numero(txtTelefone.getText())); 
        aluguel = Double.parseDouble(virgula.Numero(txtAluguel.getText()));
        venda = Double.parseDouble(virgula.Numero(txtVenda.getText()));
        icmsvenda = Double.parseDouble(virgula.Numero(txtIcmsVenda.getText()));
        jurosconcebido = Double.parseDouble(virgula.Numero(txtJurosConcebido.getText())); 
        descontoconcebido = Double.parseDouble(virgula.Numero(txtDescontoConcebido.getText()));
        fornecedor = Double.parseDouble(virgula.Numero(txtFornercedor.getText()));
        duplicadaspagar = Double.parseDouble(virgula.Numero(txtDuplicatasPagar.getText()));
        icmsrecolher = Double.parseDouble(virgula.Numero(txtIcmsRecolher.getText()));
        duplicatasapagar = Double.parseDouble(virgula.Numero(txtDuplicatasAPagar.getText()));
        jurosobtido = Double.parseDouble(virgula.Numero(txtJurosObitido.getText())); 
        descontoobtido = Double.parseDouble(virgula.Numero(txtDescontoObitido.getText())); 
        capital = Double.parseDouble(virgula.Numero(txtCapitalSocial.getText())); 
        reserva = Double.parseDouble(virgula.Numero(txtReservaCapital.getText()));
        lucro = Double.parseDouble(virgula.Numero(txtLucro.getText()));
        //Somando crédito e débito.
        somadebito = banco + caixa + aplicacao + duplicatasreceber + estoque + materialescritorio + materiallimpeza + icmsrecuperar + automovel
                     + informatica + movel + investimento + marketing + depreciacao + salario + agua + energia + telefone + aluguel + icmsvenda
                     + jurosconcebido + descontoconcebido;
        somacredito = fornecedor + duplicadaspagar + icmsrecolher + duplicatasapagar + jurosobtido + descontoobtido + capital + reserva + lucro + venda;
        //Inserindo os valores na verificação.
        txtCredito.setText(new DecimalFormat("#.00").format(somacredito));
        txtDebito.setText(new DecimalFormat("#.00").format(somadebito));
    }//GEN-LAST:event_EventoBtVerificar
    //Efetuar pesquisa dos valores armazenados.
    private void EventoBtPesquisar(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EventoBtPesquisar
        String pasta = pontoevirgula.Retirar(txtCnpj.getText());
        File verificador = new File ("C:/Temp/"+pasta);
        if (verificador.isDirectory())
        {
            int soma = 0;
            String [] arquivos = verificador.list();
            for (String arquivo: arquivos)
            {
                soma = soma + 1;
            }
            if (soma <= 2)
            {
                txtEmpresa.setText(ler.lendo(pasta, "VEmpresa.txt"));
                JOptionPane.showMessageDialog(null, "Não existe arquivo gravado anteriormente.");
            }
            else
            {
                txtEmpresa.setText(ler.lendo(pasta, "VEmpresa.txt"));
                txtBanco.setText(ler.lendo(pasta, "VBanco.txt"));
                txtAplicacao.setText(ler.lendo(pasta, "VAplicacao.txt"));
                txtCaixa.setText(ler.lendo(pasta, "VCaixa.txt"));
                txtDuplicatasReceber.setText(ler.lendo(pasta, "VDuplicatasReceber.txt"));
                txtEstoque.setText(ler.lendo(pasta, "VEstoque.txt"));
                txtIcmsRecuperar.setText(ler.lendo(pasta, "VIcmsRecuperar.txt"));
                txtMaterialEscritorio.setText(ler.lendo(pasta, "VMatEscritorio.txt"));
                txtMaterialLimpeza.setText(ler.lendo(pasta, "VMatLimpeza.txt"));
                txtFornercedor.setText(ler.lendo(pasta, "VFornercedor.txt"));
                txtDuplicatasPagar.setText(ler.lendo(pasta, "VDuplicatasPagar.txt"));
                txtIcmsRecolher.setText(ler.lendo(pasta, "VIcmsRecolher.txt"));
                txtSalariosEncargos.setText(ler.lendo(pasta, "VSalario.txt"));
                txtAgua.setText(ler.lendo(pasta, "VAgua.txt"));
                txtEnergiaEletrica.setText(ler.lendo(pasta, "VEnergia.txt"));
                txtTelefone.setText(ler.lendo(pasta, "VTelefone.txt"));
                txtAluguel.setText(ler.lendo(pasta, "VAluguel.txt"));
                txtCapitalSocial.setText(ler.lendo(pasta, "VCapital.txt"));
                txtReservaCapital.setText(ler.lendo(pasta, "VReserva.txt"));
                txtLucro.setText(ler.lendo(pasta, "VLucro.txt"));
                txtVenda.setText(ler.lendo(pasta, "VVenda.txt"));
                txtIcmsVenda.setText(ler.lendo(pasta, "VIcmsVenda.txt"));
                txtJurosObitido.setText(ler.lendo(pasta, "VJurosObitido.txt"));
                txtDescontoObitido.setText(ler.lendo(pasta, "VDescObtido.txt"));
                txtAutomovel.setText(ler.lendo(pasta, "VAutomovel.txt"));
                txtInformatica.setText(ler.lendo(pasta, "VInformatica.txt"));
                txtMovel.setText(ler.lendo(pasta, "VMovel.txt"));
                txtInvestimento.setText(ler.lendo(pasta, "VInvestimento.txt"));
                txtDepreciacao.setText(ler.lendo(pasta, "VDepreciacao.txt"));
                txtMArketing.setText(ler.lendo(pasta, "VMarketing.txt"));
                txtDuplicatasAPagar.setText(ler.lendo(pasta, "VDuplaPagar.txt"));
                txtJurosConcebido.setText(ler.lendo(pasta, "VJursoConcebido.txt"));
                txtDescontoConcebido.setText(ler.lendo(pasta, "VDescConcebido.txt"));
                txtCmv.setText(ler.lendo(pasta, "VCmv.txt"));
           }
        }
        else
        {
            JOptionPane.showMessageDialog(null, "Não existe arquivo gravado para este CNPJ.");
        }
    }//GEN-LAST:event_EventoBtPesquisar

    private void AtualizarIcmsVenda(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_AtualizarIcmsVenda
        double venda = Double.parseDouble(virgula.Numero(txtVenda.getText()));
        double icms = venda * 0.18;
        txtIcmsVenda.setText(new DecimalFormat("#.00").format(icms));
    }//GEN-LAST:event_AtualizarIcmsVenda

    private void AtualizarIcmsRecuperar(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_AtualizarIcmsRecuperar
        double estoque = Double.parseDouble(virgula.Numero(txtEstoque.getText()));
        double icms = estoque * 0.18;
        txtIcmsRecuperar.setText(new DecimalFormat("#.00").format(icms));
    }//GEN-LAST:event_AtualizarIcmsRecuperar
        
    public static void main(String args[])
    {
        try 
        {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) 
            {
                if ("Nimbus".equals(info.getName())) 
                {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } 
        catch (ClassNotFoundException ex) 
        {
            java.util.logging.Logger.getLogger(Index.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } 
        catch (InstantiationException ex)
        {
            java.util.logging.Logger.getLogger(Index.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } 
        catch (IllegalAccessException ex) 
        {
            java.util.logging.Logger.getLogger(Index.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } 
        catch (javax.swing.UnsupportedLookAndFeelException ex) 
        {
            java.util.logging.Logger.getLogger(Index.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        java.awt.EventQueue.invokeLater(new Runnable() 
        {
            @Override
            public void run()
            {
                new Formulario().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JComboBox BoxRelatorio;
    private javax.swing.JButton BtGerar;
    private javax.swing.JButton BtPesquisar;
    private javax.swing.JButton BtSair;
    private javax.swing.JButton BtSalvar;
    private javax.swing.JButton BtVerificar;
    private javax.swing.JLabel LBCapialSocial;
    private javax.swing.JLabel LBCapialSocial1;
    private javax.swing.JLabel LBCapialSocial10;
    private javax.swing.JLabel LBCapialSocial11;
    private javax.swing.JLabel LBCapialSocial12;
    private javax.swing.JLabel LBCapialSocial13;
    private javax.swing.JLabel LBCapialSocial14;
    private javax.swing.JLabel LBCapialSocial15;
    private javax.swing.JLabel LBCapialSocial16;
    private javax.swing.JLabel LBCapialSocial17;
    private javax.swing.JLabel LBCapialSocial18;
    private javax.swing.JLabel LBCapialSocial19;
    private javax.swing.JLabel LBCapialSocial2;
    private javax.swing.JLabel LBCapialSocial20;
    private javax.swing.JLabel LBCapialSocial21;
    private javax.swing.JLabel LBCapialSocial22;
    private javax.swing.JLabel LBCapialSocial23;
    private javax.swing.JLabel LBCapialSocial24;
    private javax.swing.JLabel LBCapialSocial25;
    private javax.swing.JLabel LBCapialSocial26;
    private javax.swing.JLabel LBCapialSocial27;
    private javax.swing.JLabel LBCapialSocial28;
    private javax.swing.JLabel LBCapialSocial29;
    private javax.swing.JLabel LBCapialSocial3;
    private javax.swing.JLabel LBCapialSocial30;
    private javax.swing.JLabel LBCapialSocial31;
    private javax.swing.JLabel LBCapialSocial32;
    private javax.swing.JLabel LBCapialSocial33;
    private javax.swing.JLabel LBCapialSocial34;
    private javax.swing.JLabel LBCapialSocial35;
    private javax.swing.JLabel LBCapialSocial36;
    private javax.swing.JLabel LBCapialSocial4;
    private javax.swing.JLabel LBCapialSocial5;
    private javax.swing.JLabel LBCapialSocial6;
    private javax.swing.JLabel LBCapialSocial7;
    private javax.swing.JLabel LBCapialSocial8;
    private javax.swing.JLabel LBCapialSocial9;
    private javax.swing.JPanel PainelAC;
    private javax.swing.JPanel PainelANC;
    private javax.swing.JPanel PainelAdministrativo;
    private javax.swing.JPanel PainelCmv;
    private javax.swing.JPanel PainelDespesa;
    private javax.swing.JPanel PainelPC;
    private javax.swing.JPanel PainelPL;
    private javax.swing.JPanel PainelPNC;
    private javax.swing.JPanel PainelReceita;
    private javax.swing.JPanel PainelRelatorio;
    private javax.swing.JPanel PainelVerificacao;
    private javax.swing.JFormattedTextField txtAgua;
    private javax.swing.JFormattedTextField txtAluguel;
    private javax.swing.JFormattedTextField txtAplicacao;
    private javax.swing.JFormattedTextField txtAutomovel;
    private javax.swing.JFormattedTextField txtBanco;
    private javax.swing.JFormattedTextField txtCaixa;
    private javax.swing.JFormattedTextField txtCapitalSocial;
    private javax.swing.JFormattedTextField txtCmv;
    private javax.swing.JFormattedTextField txtCnpj;
    private javax.swing.JFormattedTextField txtCredito;
    private javax.swing.JFormattedTextField txtDebito;
    private javax.swing.JFormattedTextField txtDepreciacao;
    private javax.swing.JFormattedTextField txtDescontoConcebido;
    private javax.swing.JFormattedTextField txtDescontoObitido;
    private javax.swing.JFormattedTextField txtDuplicatasAPagar;
    private javax.swing.JFormattedTextField txtDuplicatasPagar;
    private javax.swing.JFormattedTextField txtDuplicatasReceber;
    private javax.swing.JFormattedTextField txtEmpresa;
    private javax.swing.JFormattedTextField txtEnergiaEletrica;
    private javax.swing.JFormattedTextField txtEstoque;
    private javax.swing.JFormattedTextField txtFornercedor;
    private javax.swing.JFormattedTextField txtIcmsRecolher;
    private javax.swing.JFormattedTextField txtIcmsRecuperar;
    private javax.swing.JFormattedTextField txtIcmsVenda;
    private javax.swing.JFormattedTextField txtInformatica;
    private javax.swing.JFormattedTextField txtInvestimento;
    private javax.swing.JFormattedTextField txtJurosConcebido;
    private javax.swing.JFormattedTextField txtJurosObitido;
    private javax.swing.JFormattedTextField txtLucro;
    private javax.swing.JFormattedTextField txtMArketing;
    private javax.swing.JFormattedTextField txtMaterialEscritorio;
    private javax.swing.JFormattedTextField txtMaterialLimpeza;
    private javax.swing.JFormattedTextField txtMovel;
    private javax.swing.JFormattedTextField txtReservaCapital;
    private javax.swing.JFormattedTextField txtSalariosEncargos;
    private javax.swing.JFormattedTextField txtTelefone;
    private javax.swing.JFormattedTextField txtVenda;
    // End of variables declaration//GEN-END:variables
}
